package com.qf.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Arrays;
import java.util.Date;
import java.util.List;

/**
 * @author Ypl
 * @version V1.0
 * @Project September-mavens
 * @Package com.qf.entity
 * @Description:
 * @Date 2022/9/29 17:52
 */
@SuppressWarnings("all")
public class User {
    private Integer id;
    private String name;
    private boolean flag;
    private char sex;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;
    private String[] hobby;
    private List<String> list;

    public User() {
    }

    public User(Integer id, String name, boolean flag, char sex, Date birthday, String[] hobby, List<String> list) {
        this.id = id;
        this.name = name;
        this.flag = flag;
        this.sex = sex;
        this.birthday = birthday;
        this.hobby = hobby;
        this.list = list;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public char getSex() {
        return sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String[] getHobby() {
        return hobby;
    }

    public void setHobby(String[] hobby) {
        this.hobby = hobby;
    }

    public List<String> getList() {
        return list;
    }

    public void setList(List<String> list) {
        this.list = list;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", flag=" + flag +
                ", sex=" + sex +
                ", birthday=" + birthday +
                ", hobby=" + Arrays.toString(hobby) +
                ", list=" + list +
                '}';
    }
}
